/*
 * @Date: 2025-02-13 17:35:10
 * @Description: description
 */
import { useEffect } from 'react';
import { View, Text, Button } from "@tarojs/components";
import { useLoad, navigateTo } from "@tarojs/taro";

import "./index.scss";

export default function Index() {
  useLoad(() => {
    console.log("Page loaded.");
  });

  useEffect(() => {
    console.log(111)
  }, [])

  return (
    <View className='index'>
      <Button
        onClick={() => {
          navigateTo({
            url: "/pages/detail/detail",
          });
        }}
      >
        按钮跳转Detail
      </Button>
      <Text>Hello world!这个是首页</Text>
    </View>
  );
}
